package java.Bad.Test_Cast_ID_1732;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;

public class PathManipulation {

	public static void main(String[] args) {
		test();
	}

	private static void test() {

		String fileName = null;
		int checkInteger = 0;

		try {
			BufferedReader inStream = new BufferedReader(new InputStreamReader(
					System.in));
			System.out.print("Please enter a filename: ");
			fileName = inStream.readLine();

		} catch (IOException e) {
			System.out.println("IOException: " + e);
			return;
		}

		File myFile = new File("/var/tmp/" + fileName);

		if (myFile.delete())
			System.out.println("deleted file");

	}
}